{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% load ietf_filters %}
{% block title %}Approval announcement writeup for {{ doc }}{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Approval announcement writeup
        <br>
        <small class="text-body-secondary">{{ doc }}</small>
    </h1>
    <form method="post">
        {% csrf_token %}
        {% bootstrap_form approval_text_form %}
        <button type="submit"
                class="btn btn-primary"
                name="save_approval_text"
                value="Save text">Save text</button>
        <button type="submit"
                class="btn btn-warning"
                name="regenerate_approval_text"
                value="Regenerate text">
            Regenerate text
        </button>
        {% if user|has_role:"Secretariat" and can_announce %}
            <a class="btn btn-primary"
               href="{% url 'ietf.doc.views_ballot.approve_ballot' name=doc.name %}">Approve ballot</a>
        {% endif %}
        <a class="btn btn-secondary float-end"
           href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">
            Back
        </a>
    </form>
{% endblock %}
